package com.lhb.beanLifecycle;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Program: spring
 * @Description:
 * @Author: LHB
 * @Version: v0.0.1
 * @Time: 2021-08-12 18:09
 **/
@Configuration
public class BeanLifecycleConfig {
	@Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
	public SpringBeanLifecycle springBeanLifecycle() {
		return new SpringBeanLifecycle();
	}
}
